package com.ruoyi.project.configureSystem.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.configureSystem.mapper.VNewinfoMapper;
import com.ruoyi.project.configureSystem.domain.VNewinfo;
import com.ruoyi.project.configureSystem.service.IVNewinfoService;

/**
 * 行业资讯Service业务层处理
 * 
 * @author wangshuo
 * @date 2021-03-12
 */
@Service
public class VNewinfoServiceImpl implements IVNewinfoService 
{
    @Autowired
    private VNewinfoMapper vNewinfoMapper;

    /**
     * 查询行业资讯
     * 
     * @param id 行业资讯ID
     * @return 行业资讯
     */
    @Override
    public VNewinfo selectVNewinfoById(Long id)
    {
        return vNewinfoMapper.selectVNewinfoById(id);
    }

    /**
     * 查询行业资讯列表
     * 
     * @param vNewinfo 行业资讯
     * @return 行业资讯
     */
    @Override
    public List<VNewinfo> selectVNewinfoList(VNewinfo vNewinfo)
    {
        return vNewinfoMapper.selectVNewinfoList(vNewinfo);
    }

    /**
     * 新增行业资讯
     * 
     * @param vNewinfo 行业资讯
     * @return 结果
     */
    @Override
    public int insertVNewinfo(VNewinfo vNewinfo)
    {
        return vNewinfoMapper.insertVNewinfo(vNewinfo);
    }

    /**
     * 修改行业资讯
     * 
     * @param vNewinfo 行业资讯
     * @return 结果
     */
    @Override
    public int updateVNewinfo(VNewinfo vNewinfo)
    {
        return vNewinfoMapper.updateVNewinfo(vNewinfo);
    }

    /**
     * 批量删除行业资讯
     * 
     * @param ids 需要删除的行业资讯ID
     * @return 结果
     */
    @Override
    public int deleteVNewinfoByIds(Long[] ids)
    {
        return vNewinfoMapper.deleteVNewinfoByIds(ids);
    }

    /**
     * 删除行业资讯信息
     * 
     * @param id 行业资讯ID
     * @return 结果
     */
    @Override
    public int deleteVNewinfoById(Long id)
    {
        return vNewinfoMapper.deleteVNewinfoById(id);
    }
}
